package com.aididi.controller;

import com.aididi.service.ConsumerFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zx.xu
 * @Description:
 */
@RestController
@RequestMapping("/fg")
public class ConsumerFeignController {

    @Autowired
    private ConsumerFeignService consumerFeignService;

    @Value("${spring.application.name}")
    String serverName;


    @GetMapping("/test/hello")
    public String test(){
        return consumerFeignService.test(serverName);
    }


}
